<template>
  <div class="h100">
    <RouterView></RouterView>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import { Local } from '@/utils/storage'
import { useLayoutConfigStore } from '@/stores/layoutConfig'

const layoutConfigStore = useLayoutConfigStore()

onMounted(() => {
  // 获取 localStorage 中的布局配置，进行 pinia 状态更新
  const layoutConfigState = Local.get('layoutConfig')
  if(layoutConfigState) {
    layoutConfigStore.updateState(layoutConfigState)
  }
})

</script>

<style scoped>

</style>